from selenium import webdriver

browser = webdriver.Chrome()
browser.get('https://baike.baidu.com/item/%E4%B9%98%E9%A3%8E%E7%A0%B4%E6%B5%AA%E7%9A%84%E5%A7%90%E5%A7%90')
# input_first = browser.find_element_by_id('q')
# input_second = browser.find_element_by_css_selector('#q')
# input_third = browser.find_element_by_xpath('//*[@id="q"]')
# print(input_first, input_second, input_third)
# browser.close()
# input_first = browser.find_element(By.ID, 'q')
# print(input_first)
# browser.close()

# css-selector
lis = browser.find_element_by_class_name('para')
# lis = browser.find_elements(By.CSS_SELECTOR, '.service-bd li')

print(lis)
browser.close()
